/*
 * Filename MqttClient.java 2022年04月19日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.base.api.feign.sys;

import com.ehome.poct.base.api.dto.sys.MqttInfoDTO;
import com.ehome.poct.base.api.dto.sys.MqttMsg;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wyc
 * @since 2022/04/19 15:04
 **/
@FeignClient(value = "${service.poct-base:}${service.suffix.poct-base:}", path ="/sys/mqtt", contextId = "mqttInfo")
public interface MqttClient {
    @GetMapping("/one")
    MqttInfoDTO getInfo();

    /**
     * 发送mqtt请求
     * @param mqttMsg
     */
    @PostMapping("/sendToMqtt")
    void sendToMqtt(@RequestBody MqttMsg mqttMsg);
}